package wechat

// token
const (
	publictokenurl  = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code"
	miniapptokenurl = "https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code"
)

// miniapp
const (
	getUnlimitedUrl          = "https://api.weixin.qq.com/wxa/getwxacodeunlimit"
	getAccesstokenMiniappUrl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s"
	subscribeMessageSend     = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send"
)

// wxpay
const (
	// 统一下单请求api地址
	unifiedOrderURL = "https://api.mch.weixin.qq.com/pay/unifiedorder"
	// 查询订单url
	orderQueryURL = "https://api.mch.weixin.qq.com/pay/orderquery"
	// 关闭订单url
	closeQueryURL = "https://api.mch.weixin.qq.com/pay/closeorder"
	// 申请退款url
	refundURL = "https://api.mch.weixin.qq.com/secapi/pay/refund"
	// 查询退款url
	refundQueryURL = "https://api.mch.weixin.qq.com/pay/refundquery"
	// 下载对账单url
	downloadBillURL = "https://api.mch.weixin.qq.com/pay/downloadbill"
	// 下载对账单url
	downloadFundflowURL = "https://api.mch.weixin.qq.com/pay/downloadfundflow"
)
